import component from 'element-plus/es/components/tree-select/src/tree-select-option.mjs'
import { createRouter, createWebHistory } from 'vue-router'

const Home = ()=>import('@/view/Home.vue')
const Book = ()=>import('@/component/Book.vue')

const routes=[
  {
    path:'/',
    name:Home,
    component:Home
  },  {
    path:'/home',
    name:Home,
    component:Home,
    children:[
      {
        path:"book",
        name:Book,
        component:Book        
      }
    ]
  }
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes:routes,
})

export default router
